using Avalonia.Controls;
using System;
using 畜牧业审核程序国产.Models;
using 畜牧业审核程序国产.ViewModels;


namespace 畜牧业审核程序国产.Views;

public partial class MainWindow : Window
{
    //private SettingManager _settingManager;
    public MainWindow()
    {
        InitializeComponent();
        //var viewModel = new  MainWindowViewModel(this);
        //DataContext = viewModel;
        //this.FontFamily = new Avalonia.Media.FontFamily("avares://畜牧业审核程序国产/Assets/Fonts/msyh.ttf#Microsoft YaHei");//④
       
        
        
        //_settingManager = new SettingManager();
        //this.Closing += OnClosing;
    }

    //private void OnClosing(object? sender, WindowClosingEventArgs e)
    //{
    //    _settingManager.UpdateAccountInfo(ViewModels.MainWindowViewModel.PG1.txt国网用户名.Text, ViewModels.MainWindowViewModel.PG1.txt国网密码.Text,
    //        ViewModels.MainWindowViewModel.PG1.txt省网用户名.Text, ViewModels.MainWindowViewModel.PG1.txt省网密码.Text, ViewModels.MainWindowViewModel.PG1.txt统计云用户名.Text
    //        , ViewModels.MainWindowViewModel.PG1.txt统计云密码.Text);
    //    _settingManager.SaveSettings();
    //}

   
}